package com.bl.student.service.biz.main;

import com.bl.student.dao.model.UserEntity;
import com.bl.student.dao.redis.model.UserInfo;
import com.bl.student.service.vo.main.LoginResponseVo;
import com.bl.student.service.vo.main.LoginVo;
import com.bl.student.service.vo.main.RegisterVo;
import com.bl.student.service.vo.main.ResetVo;

/**
 * Created by yujingyi on 2018/1/18.
 */
public interface MainService {

    LoginResponseVo register(RegisterVo registerVo, String unionId);

    LoginResponseVo appLogin(LoginVo loginVo, String unionId);

    void reset(ResetVo resetVo);

    void register(RegisterVo registerVo);

    void logout(UserInfo userInfo);

    LoginResponseVo miniWechatLogin(String code, String encryptedData, String iv);

    UserEntity createWechatUser(String nickname, int sex, String avatar, String openId, String unionId);
}
